package com.xyoto.community.service;

import com.xyoto.community.dto.AddAnonymousUserDTO;
import com.xyoto.community.dto.AnonyUserDTO;
import com.xyoto.community.entity.main.AnonymousUser;
import com.xyoto.community.utils.Result;

/**
 * ClassName:   匿名信息Service接口
 * Author:      挽风
 * Date:        2020
 * Copyright:   2020 by 挽风1.0版本
 * Description:
 **/
public interface AnonyUserService {





    /**
     * 随机获取一个匿名信息
     * @return
     */
    Result getOneAnonymous();

    /**
     * 新增一个匿名用户信息
     * @param addAnonymousUserDTO
     * @return
     */
    Result saveAnonymousUser(AddAnonymousUserDTO addAnonymousUserDTO);

    /**
     * 根据匿名用户id获取匿名用户信息
     * @param id
     * @return
     */
    AnonymousUser getAnonymousUserById(Integer id);
}
